<?php
/**
 * @package WordPress
 * @subpackage Elespectador_Theme
 */

get_header();

$blog_url = get_bloginfo(url);

?>
<div class="cabezote_blogs">
<h2><a href="<?php echo $blog_url;?>" title="Blogs Caracoltv.com">
BLOGS.</a>
</h2>
</div>
<?php /*GOLCARACOLif ($seccion[0]->image=='gol'){
	echo '<div class="title_blog">
<a href="'.$blog_url.'" title="Blogs Caracoltv.com">'. get_bloginfo('name').'</a></div>';	
}*/
?>
	<div class="bloque_izq">

	  	<div class="cabezote">
        <a href="<? echo site_url();?>" title="<? echo  get_bloginfo('name'); ?>"><img src="<?php echo get_template_directory_uri(); ?>/images/<?php echo $blog_id; ?>.jpg" height="91px"></a>
        </div>

		<div class="un_post_despliegue" style="margin-top: 0pt;">


	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

		<div class="datos_post_despliegue" id="post-<?php the_ID();?>">
        <?php global $id; ?>
				<div class="fecha_post">
						<h2><?php the_time('d') ?></h2>
						<h3><?php the_time('M') ?></h3>
						<h4><?php the_time('Y') ?></h4>
						<div class="clear"></div>
				</div>
				<div class="el_post_despliegue">
						<h2><?php the_title(); ?></h2>
				</div><div class="clear"></div>
			</div>
			<div class="info_post_despliegue">
				<?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
			</div>
			<div class="herramientas_post_despliegue">
				<div class="categoria">
					<h2>Categoria: <br /><strong><?php the_category(', ') ?></strong></h2>
				</div>
				<div class="tags">
					<h2>TAGS:<br />
					<?php the_tags( '<strong>', ' -', '</strong>'); ?>
					</h2>
				</div>
				<div class="comentarios">
					<h2>COMENTARIOS:<br /><strong><?php  comments_number('0', '1', '%' );?></strong></h2>
				</div>
				<div class="calificacion">
                	<h2>Ranking</h2>
					<?php if(function_exists('the_ratings')) { the_ratings(); } ?>

				</div>
			</div>
			<div class="herramientas_nota">
				<?php edit_post_link('Editar ','','|');?>
				<?php if(isset($user_login)){
					echo '<a name="TOP"><em><img height="15" width="18" src="'.get_template_directory_uri().'/images/comentar_icon.gif"/></em></a>
<strong><a class="bt_ingreso" href="#comment" title="Opinar">Opinar</a></strong>';
				}else{
				echo '<a name="TOP"><em><img height="15" width="18" src="'.get_template_directory_uri().'/images/comentar_icon.gif"/></em></a>
<strong><a class="bt_ingreso" href="#inicio" onClick="return overlay2(this, \'subcontent\')" title="Opinar">Opinar</strong></a>';
				}?>
				|
				<?php if(function_exists('wp_print')) { print_link(); } ?> |

			<?php if (function_exists('sharethis_button')) { sharethis_button(); } ?>

			</div>
            </div>
<div class="clear"></div>	<?php comments_template(); ?>

	<?php endwhile; else: ?>

		<p>Sorry, no posts matched your criteria.</p>

<?php endif; ?>
			

		</div>
		<?php //get_sidebar (); ?>
<div class="bloque_der"><?php get_sidebar();?></div>
	</div>



<?php get_footer(); ?>